package demo;

import java.util.Random;

public class MatrixGenerator {
	public static double[][] create_Matrix(int row_number,int column_number ) {
		 
		 
		double matrixA[][] = new double[row_number][column_number];
		for (int i = 0; i <= row_number - 1; i++) {
			for (int j = 0; j <= column_number - 1; j++) {
				matrixA[i][j] = random_number();
				
			}
			System.out.println();
		}
		return matrixA;
	}
 
 
//产生一个1~100的随机整数，用于自动填入矩阵A的每个位之中 
    public static int random_number(){
    	int number;
    	number = new Random().nextInt(10)+1;
    	return number;
    }


//public static void main(String[] args) {
//	
//	
//	
//	System.out.println("随机生成的矩阵A为：");
//	MatrixGenerator.create_Matrix(20,20);	//创建矩阵	
//	
//}


}
